const http = require('../../../utils/http.js');
Page({
  data: {
    candidateTypes: []
  },

  onLoad() {
    this.getCandidateTypes();
  },

  getCandidateTypes() {
    http.get('/candidateType/list').then(res =>{
      console.log(res);
      this.setData({
        candidateTypes: res.data.data
      });
    }).catch(err=>{
      console.log(err);
      wx.showToast({
        title: '系统错误，请稍后重试',
        icon: Error
      })
    })
  },
});